﻿@model IEnumerable<BusinessLogic.Model.ProductItem>

@{
    ViewBag.Title = "Index";
}

@foreach (var item in Model)
{
    <a href="Product/Detail/@item.Id" class="item">
        <img src="@Url.Action("LoadImageToHomepage", "Product", new { id = item.Id })" alt="Person Image" />
        <p class="item_name">@item.Name</p>
        <div class="row_price">
            <p class="item_saleprice">@item.SalePrice<sup>đ</sup></p>
            <p class="item_price"><strike>@item.Price</strike><sup>đ</sup></p>
        </div>

    </a>
}
